Stereotypes and Scandals: Politician Gender and Public Judgments about Scandal in Mexico

Authors:
Fernanda Quintanilla Domínguez
Rebecca Bell-Martin
Brett Ryan Bessen

Contact: brett.bessen@tec.mx

ABOUT THESE MATERIALS -----------------------------------------------------

This folder contains all files needed to reproduce the analyses in the paper.
The analysis.Rmd script automatically creates the folders "tables" and "figures"  the first time it is run.
Outputs will be saved to the "tables" and "figures" folders.

FILES INCLUDED -----------------------------------------------

DATA FILES:
survey1_clean.rds (cleaned student sample)
survey1_final.csv (raw student sample data)
survey2_clean.rds (cleaned gen pop sample)
survey2_final.csv  (raw gen pop sample)

QUESTIONNAIRES:
survey 1_codebook.docx
survey 2_codebook.docx

SCRIPTS:
cleaning.Rmd (optional; regenerates cleaned data)
analysis.Rmd (main results)
pilot_results.Rmd (analysis of student sample)
supplemental_info.Rmd (additional appendix analyses)

R PROJECT FILE:
gender_and_scandal.Rproj

TO REPRODUCE RESULTS ----------------------------------------

1. Open "gender_and_scandal.Rproj" in RStudio.

2. Run "cleaning.Rmd" to recreate the cleaned .rds files.
   The cleaned files are already provided, so this step is not required.

3. Run "analysis.Rmd". This produces all the main tables and figures.
   The script automatically creates the folders: tables/ figures/

4. Run "pilot_results.Rmd" and "supplemental_info.Rmd" to reproduce all appendix results.


